package com.kee.server.utils;


import com.kee.server.exception.FileUploadException;
import com.kee.server.exception.ParamsException;

public class AssertUtil {

    public static void isTrue(Boolean flag, String msg) {
        if (flag) {
            throw new ParamsException(msg);
        }
    }


    public static void fileException(Boolean flag, String msg) {
        if (flag) {
            throw new FileUploadException(msg);
        }
    }

}
